<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags"  prefix="s" %>
<base href="<%=basePath%>">
<style type="text/css">
<!--
.STYLE19 {
	color: #344b50;
	font-size: 15px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
.button1    {   
   border-right:    #999999   1px    solid;    border-top:    #ffffff    1px    solid;    font-size:    8pt;    border-left:    #ffffff    1px    solid;    width:    65px;    color:   yellow;    border-bottom:    #999999    1px    solid;    height:    20px;    background-color:   #333333   
   }
-->
</style>
<s:if test='key=="2"'>
	        	<font size="2" color="red">
   	        <table class="STYLE19">
				<tr>
					<td >&nbsp;【销售信息】<br/><img src="images/teac.jpg" width="368" height="2" alt=""></td>
				</tr>
				<tr>
					<td>&nbsp;销售序号：${sale.xsserialnum }</td>
				</tr>
					
				<tr>
					<td>&nbsp;销售地址：${sale.address }</td>
				</tr>
					
				<tr>
					<td>&nbsp;运输路径：${sale.route }</td>
				</tr>
				<tr>
					<td>&nbsp;采取措施：${sale.measure}</td>
				</tr>
			</table>
			<table class="STYLE19">
				<tr>
					<td>&nbsp;【加工信息】<br/><img src="images/teac.jpg" width="368" height="2" alt=""></td>
				</tr>
				<tr>
					<td>&nbsp;加工序号：${process.jgserialnum }</td>
				</tr>
					
				<tr>
					<td>&nbsp;使用材料：${process.meterial }</td>
				</tr>
					
				<tr>
					<td>&nbsp;所属分类：${process.classify }</td>
				</tr>
				<tr>
					<td>&nbsp;包装打印：${process.print }</td>
				</tr>
			</table>
			<table class="STYLE19">
				<tr>
					<td>&nbsp;【茶园信息】<br/><img src="images/teac.jpg" width="368" height="2" alt=""></td>
				</tr>
				<tr>
					<td>&nbsp;茶园序号：${product.cnserialnum }</td>
				</tr>
					
				<tr>
					<td>&nbsp;生长时间：${product.growStart }~${product.growEnd }</td>
				</tr>
					
				<tr>
					<td>&nbsp;有无虫害：${product.isinsect }&nbsp;是否为有机肥：${product.isOrfert }</td>
				</tr>
				<tr>
					<td>&nbsp;温度(℃)：${product.temp }&nbsp;湿度(RH)：${product.humidity }&nbsp;酸碱度(pH)：${product.phvalue }</td>
				</tr>
				
				<tr>
					<td>&nbsp;农药类型：${product.pseKind }</td>
				</tr>
				<tr>
					<td>&nbsp;农药量：${product.pseAmount }</td>
				</tr>
				<tr>
					<td>&nbsp;农药使用时间：${product.pseTime }</td>
				</tr>
				<tr>
					<td>&nbsp;采摘时间：${product.pickTime }	<input type="button" class="button1" onclick="document.getElementById('div').style.display=(document.getElementById('div').style.display=='none')?'':'none'"  value="+显示更多" /></td>
				</tr>
				
			</table>
			
			<!-- style="width: 300px;border: 1px dashed #CCCCCC;background-color: #FFFFCC;display:none" -->
			<div id="div"  style="display:none">
			<table class="STYLE19">
				<tr>
					<td>&nbsp;【茶农信息】<br/><img src="images/teac.jpg" width="368" height="2" alt=""></td>
				</tr>
				<tr>
					<td>&nbsp;茶农姓名：${user.realname }</td>
				</tr>
					
				<tr>
					<td>&nbsp;茶园地址：${user.address }</td>
				</tr>
					
				<tr>
					<td>&nbsp;联系方式：${user.telephone }</td>
				</tr>
				<tr>
					<td>&nbsp;茶园简介：${user.introduction }</td>
				</tr>
			</table>
			</div>
			</font>
	</s:if>
	<s:elseif test='key=="3"'>
		${errorInfo}<br/>
		可能原因1：你所购买的产品存在问题!<br/>
		可能原因2：对于该产品，系统没有相关信息存档!
		
	</s:elseif>
	<s:else>请输入信息进行查询!</s:else>
